Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphiQL + Super-basic MisTickets #39

Merged
merged 6 commits into from
Jul 5, 2024
Merged

Conversation

fforres
Copy link
Member

@fforres fforres commented Jul 2, 2024

Super-super-super Basic UI for "mis tickets"
Also, enables a graphiql interface to test :)

image

Copy link

cloudflare-workers-and-pages bot commented Jul 2, 2024

Deploying tickets with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9a1f310
Status: ✅  Deploy successful!
Preview URL: https://8797a07d.tickets.pages.dev
Branch Preview URL: https://fforres-pagination-helpers.tickets.pages.dev

View logs

@fforres fforres changed the title Adding pagination helpers GraphiQL + MisTickets Jul 2, 2024
@fforres fforres changed the title GraphiQL + MisTickets GraphiQL + Super-basic MisTickets Jul 2, 2024
@fforres fforres marked this pull request as ready for review July 2, 2024 15:02
hvergara
hvergara previously approved these changes Jul 2, 2024
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function graphql(
source: "query misTickets($input: PaginatedInputMyTicketsSearchValues!) {\n myTickets(input: $input) {\n data {\n approvalStatus\n id\n paymentStatus\n redemptionStatus\n }\n pagination {\n currentPage\n pageSize\n totalPages\n totalRecords\n }\n }\n}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we going to name operations in english or spanish? we should choose one and follow that pattern going forward.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. English :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do a pass in the API to update naming

@fforres fforres force-pushed the fforres/pagination_helpers branch from c07ca9c to 9478adb Compare July 2, 2024 22:40
import { useRefreshToken } from "~/utils/supabase/client";
import { urls } from "~/utils/urls";

const comunidades = `query TodasLasComunidades {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default language should be English.

Copy link
Member

@joseglego joseglego left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fforres fforres merged commit f28c804 into main Jul 5, 2024
4 checks passed
@fforres fforres deleted the fforres/pagination_helpers branch July 5, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants